package com.diancan.utils;

import java.time.LocalDateTime;

// 创建订单编号

public class OrdersUtils {
    public static String createOrderId() {
        String str = LocalDateTime.now().toString().replace("-", "")
                .replace("T", "").replace(":", "")
                .replace(".", "").substring(0, 20);
        return str;
    }

    public static void main(String[] args) {
        createOrderId();
    }
}
